{% extends "in_base.html" %}
{% block content %}
<div class="loginmain">
    <div class="login-title">
<!--        <span>手机登录</span>-->
        <span>Phone number login</span>
    </div>

    <div class="login-con">
        <form method="POST" action="" id="find_form" onsubmit="return ">
            <input type='text' name='md5_pwd' id='md5_pwd' value='' hidden/>
            <div class="login-user">
                <div class="icon">
                    <img src="{{url_for('static',filename='image/user_icon_copy.png')}}" >
                </div>
<!--                <input type="text" name="account" placeholder="手机号" autocomplete="off" value="">-->
                <input type="text" name="account" placeholder="phone number" autocomplete="off" value="">
                <p class="var_text" id="account_" hidden></p>
                {% with messages = get_flashed_messages() %}
                    {% if messages %}
                            <script>
                                var ap = document.getElementById("account_");
                                ap.innerHTML= "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{{messages[0]}}";
                                ap.removeAttribute("hidden");
                            </script>
                    {% endif %}
                {% endwith %}
            </div>
            <div class="login-pwd" hidden id="vcode_div">
                <div class="icon">
                    <img src="{{url_for('static',filename='image/key.png')}}" >
                </div>
<!--                <input type="text" name="vcode" placeholder="验证码" autocomplete="off" value="">-->
                <input type="text" name="vcode" placeholder="Verification Code" autocomplete="off" value="">
                <p class="var_text" id="vcode_" hidden></p>
            </div>
            <div class="login-btn" id="get_vcode">
<!--                <input type="button" value="获取验证码" onclick="return subTele()">-->
                <input type="button" value="Get verification Code" onclick="return subTele()">
            </div>
            <div class="login-btn" id="log" hidden>
                <input type="submit" value="login" onclick="">
<!--                <input type="submit" value="登录" onclick="">-->
            </div>
            <br>
            <br>
            <br>
            <div class="login-btn" id="j_log">
                <a href="{{ url_for('login')}}"><input type="button" value="login" onclick=""></a>
<!--                <a href="{{ url_for('login')}}"><input type="button" value="登录" onclick=""></a>-->
            </div>
        </form>

    </div>

</div>
{% endblock %}